package com.hscm.boss.mvc.service;

import com.hscm.boss.mvc.model.dto.operator.LoginResponseDto;
import com.hscm.boss.mvc.model.from.operator.LoginFrom;
import com.hscm.boss.mvc.model.menus.SubMenu;

import java.util.List;

public interface OperatorService {
    /**
     *
     * @param loginFrom 操作员登录的名称和密码
     * @return JWT 和 showName
     */
    LoginResponseDto OperatorLogin(LoginFrom loginFrom);

    /**
     * 获取登录用户的菜单列表
     * @param operatorId
     * @return
     */
    List<SubMenu> getMenuByLoginUser(Long operatorId);

    void OperatorLogout(Long operatorId);
}
